package kr.hkit.androidcomplete01.chapter08;

import kr.hkit.androidcomplete01.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch08_MainActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch08main);
	}
	
	public void mOnClick(View v){
		Intent intent = null;
		switch(v.getId()){
		
		case R.id.ch08_subex01:
			intent = new Intent(this, HandleEventEx.class);
			break;
			
		case R.id.ch08_subex02:
			intent = new Intent(this, HandleEventListenerEx.class);
			break;
			
		case R.id.ch08_subex03:
			intent = new Intent(this, HandlerOrderEx.class);
			break;
			
		case R.id.ch08_subex04:
			intent = new Intent(this, HandlerAccessEx.class);
			break;
			
		case R.id.ch08_subex05:
			intent = new Intent(this, LineLongClickEx.class);
			break;
			
		case R.id.ch08_subex06:
			intent = new Intent(this, MoveCircleEx.class);
			break;
			
		case R.id.ch08_subex07:
			intent = new Intent(this, LongClickEx.class);
			break;
			
		}
		startActivity(intent);
	}
}
